package org.zxyj.core.entity;

import java.util.List;

/**
 * 树形数据实体
 * 
 * @author zhaoyong
 * @version 2016年2月18日
 */
public class TreeEntity<T> extends BaseEntity<T> {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 6996871007893806471L;

	/**
	 * 父节点
	 */
	protected T parent;
	
	/**
	 * 子节点
	 */
	protected List<T> children;

	public T getParent() {
		return parent;
	}

	public void setParent(T parent) {
		this.parent = parent;
	}

	public List<T> getChildren() {
		return children;
	}

	public void setChildren(List<T> children) {
		this.children = children;
	}

}